<?php

/**
 * @author shuang
 * @date 2017-3-14 15:26:28
 */
?>
<div class="formbody">
    <div class="formtitle"><span>基本信息</span></div>
    <div class="toolsli">
        <ul class="toollist">
            <li><h5>账号 ：<?php echo $user->userprofile->username; ?></h5></li>
            <li><h5>手机号码 ：<?php echo $user->userprofile->phone; ?></h5></li>
            <li><h5>真实姓名 ：<?php echo $user->userprofile->truename; ?></h5></li>
            <li><h5>邀请人 ：<?php echo $user->userprofile->invite_code == common\components\MTools::getYiiParams("sys_invite_code") ? "平台" : ($user->userprofile->userinvite ? $user->userprofile->userinvite->username : "已不存在"); ?></h5></li>
            <li><h5>支付宝账号  ：<?php echo $user->userprofile->alipay; ?></h5></li>
            <li><h5>QQ账号 ：<?php echo $user->userprofile->qq; ?></h5></li>
            <li><h5>注册时间 ：<?php echo Yii::$app->formatter->asDatetime($user->created_at); ?></h5></li>
        </ul>
    </div>
    <div class="formtitle"><span>账户详情</span></div>
    <div class="toolsli">
        <ul class="toollist">
            <li><h5>账户金额：<?php echo Yii::$app->formatter->asDecimal($user->useraccounthy ? $user->useraccounthy->amount : 0); ?></h5></li>
            <li><h5>可提现金额：<?php echo Yii::$app->formatter->asDecimal($user->useraccounthy ? $user->useraccounthy->can_drawal_amount : 0); ?></h5></li>
            <li><h5>已提现金额：<?php echo Yii::$app->formatter->asDecimal($user->useraccounthy ? $user->useraccounthy->yet_drawal_amount : 0); ?></h5></li>
        </ul>
    </div>
    <div class="formtitle"><span>任务情况</span></div>
    <div class="toolsli">
        <ul class="toollist">
            <li><h5>完成任务量：<?php echo $user->getCompleteTaskCount($user->id);?></h5></li>
            <li><h5>投诉任务量：<?php echo $user->getcomplaintTaskCount($user->id);?></h5></li>
            <li><h5>隐藏任务量：<?php echo $user->getHiddenTaskCount($user->id);?></h5></li>
            <li><h5>推广人数：<?php echo $user->getInviteTaskCount($user->my_code);?></h5></li>
        </ul>
    </div>
</div>